package edu.nf.ch04.mapper;

import edu.nf.ch04.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author CSY
 * @date 2025 - 04 - 23
 */
public interface UserMapper {
    /**
     * 根据用户id查询user
     * @param id
     * @return
     */
    User getUserById(int id);

    User getUser(@Param("id") int id,
                 @Param("name") String name);
}
